import { GetCategory,GetCategoryAll } from '@/api/news.js'
const actions = {
    GET_CATEGORY() {
        return new Promise((resolve, reject) => {
            GetCategory().then(response => {
                resolve(response)
            }).catch(error => {
                reject(error)
            })
        })
    },
    GET_CATEGORY_ALL() {
        return new Promise((resolve, reject) => {
            GetCategoryAll().then(response => {
                resolve(response)
            }).catch(error => {
                reject(error)
            })
        })
    }

}
export default {
    namespaced: true,
    actions
}